package ooday03;

import javax.swing.text.StringContent;

public class Fish extends Animal implements Swim{
    Fish(String name, int age, String colour){
        super(name,age,colour);
    }
     void eat(){
         System.out.println(colour+"色的"+age+"岁的叫"+name+"的小鱼在吃虾米");
     }
     public void swim(){
         System.out.println(colour+"色的"+age+"岁的叫"+name+"的小鱼在游泳");
     }

}
